module.exports = {
    "css and xpath": function(browser) {
        browser.url("http://tutorials.actionqa.com/yt/nw/locator-01.html")
        
        const cssSelector = "#text-input";
        const xpathSelector = "//input[@id='text-input']";


        // css selector used by default
        browser.setValue(cssSelector, "CSS selector used");
        browser.pause(2*1000);
        
        // switching to xpath
        browser.useXpath();
        browser.setValue(xpathSelector, "XPATH selector used");
        browser.pause(2*1000);

        // switching to css
        browser.useCss();
        browser.clearValue(cssSelector);
        browser.setValue(cssSelector, "CSS selector returned");
        browser.pause(2*1000);
        browser.end();
    },

    "the next test": browser => {
        browser.pause(2*1000);

    }
}